package eg3;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestDemo {

    public static void main(String[] args){
        AnnotationConfigApplicationContext context
                = new AnnotationConfigApplicationContext("eg3");
        ShopController controller = context.getBean(ShopController.class);

        System.out.println("应用程序使用bean对象阶段");
        context.close();
    }
}
